import request from '@/utils/request'
import qs from 'qs'
// 模板配置
// 查询测点模板告警配置列表
export const getDemoListapi = params => request.get('/core/iot/config/item-template-alarm/list', { params })
// 创建测点模板告警配置
export const postDemoListapi = data => request.post('/core/iot/config/item-template-alarm', qs.stringify(data))
// 删除测点模板告警配置
export const delDemoListapi = data => request.post('/core/iot/config/item-template-alarm/delete', qs.stringify(data))
// 修改测点模板告警配置
export const putDemoListapi = data => request.post('/core/iot/config/item-template-alarm/put', qs.stringify(data))

// 测点
// 查询测点告警配置列表
export const getDeviceListapi = params => request.get('/core/iot/config/device-item-alarm/list', { params })
// 创建模版测点配置
export const postDeviceListapi = data => request.post('/core/iot/config/device-item-alarm', qs.stringify(data))
// 删除测点告警配置
export const delDeviceListapi = data => request.post('/core/iot/config/device-item-alarm/delete', qs.stringify(data))
// 修改测点告警配置
export const putDeviceListapi=data=>request.post('/core/iot/config/device-item-alarm/put',qs.stringify(data))